import request from '@/utils/request'

// 查询差评弹窗列表
export function listFeedback(query) {
    return request({
        url: '/bizsys/feedback/list',
        method: 'get',
        params: query
    })
}

// 查询差评弹窗详细
export function getFeedback(id) {
    return request({
        url: '/bizsys/feedback/' + id,
        method: 'get'
    })
}

// 新增差评弹窗
export function addFeedback(data) {
    return request({
        url: '/bizsys/feedback',
        method: 'post',
        data: data
    })
}

// 修改差评弹窗
export function updateFeedback(data) {
    return request({
        url: '/bizsys/feedback',
        method: 'put',
        data: data
    })
}

// 删除差评弹窗
export function delFeedback(id) {
    return request({
        url: '/bizsys/feedback/' + id,
        method: 'delete'
    })
}

// 导出差评弹窗
export function exportFeedback(query) {
    return request({
        url: '/bizsys/feedback/export',
        method: 'get',
        params: query
    })
}